
import tracker from '../util/tracker';



export function injectXHR() {
    let XMLHttpRequest = window.XMLHttpRequest
    let oldOpen = XMLHttpRequest.prototype.open;
    XMLHttpRequest.prototype.open = function(method, url, async){
        this.logData = {
            method, url, async
        }
        return oldOpen.apply(this, arguments);
    }
}